Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/destination

Package Overview
Dependencies
Maintainers
4
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/destination

turf destination module

  • 3.14.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created

What is @turf/destination?

@turf/destination is a module from the Turf.js library that allows you to calculate the destination point given a starting point, distance, and bearing. It is useful for geospatial analysis and manipulation, particularly in applications involving mapping, navigation, and geographic data processing.

What are @turf/destination's main functionalities?

Calculate Destination Point

This feature allows you to calculate the destination point from a given starting point, distance, and bearing. The code sample demonstrates how to use the @turf/destination module to find a point 50 miles east of the starting point.

const turf = require('@turf/turf');

const start = turf.point([-75.343, 39.984]);
const distance = 50;
const bearing = 90;
const options = {units: 'miles'};

const destination = turf.destination(start, distance, bearing, options);
console.log(destination);

Other packages similar to @turf/destination

Keywords

FAQs

Package last updated on 22 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc